package com.imon.pivotal;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.webapp.WebAppContext;

/**
 * Hello world!
 * 
 */
public class App {
	private static final Log	LOG	= LogFactory.getLog(App.class);

	public static void main(String[] args) throws Exception {
		LOG.debug("Starting pivotal web hook");

		// ApplicationContext applicationContext = new
		// ClassPathXmlApplicationContext("applicationContext.xml");
		Server server = new Server(8080);
		server.setHandler(new WebAppContext("src/main/webapp", "/*"));
		server.start();
		LOG.debug("Jetty server started." + server);
		server.join();
	}
}
